| Conditions | 9 |
| Paths | 7 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 13 | export const stateGetter = (state, props, key, entry) => { |
||
| 14 | |||
| 15 | if (props |
||
| 16 | && props.reducerKeys |
||
| 17 | && Object.keys(props.reducerKeys).length > 0 |
||
| 18 | && props.reducerKeys[key]) { |
||
| 19 | |||
| 20 | const dynamicKey = props.reducerKeys[key]; |
||
| 21 | const dynamicState = get(state, dynamicKey, entry); |
||
| 22 | |||
| 23 | return dynamicState && dynamicState.toJS |
||
| 24 | ? dynamicState.toJS() |
||
| 25 | : dynamicState; |
||
| 26 | } |
||
| 27 | |||
| 28 | const val = get(state, key, entry); |
||
| 29 | |||
| 30 | if (val) { |
||
| 31 | return val.toJS ? val.toJS() : val; |
||
| 32 | } |
||
| 33 | |||
| 34 | return null; |
||
| 35 | }; |
||
| 36 | |||
| 43 |